package com.itheima.demo05.PrintStream;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class Demo01PrintStream {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream ps = new PrintStream("day10_IO\\print.txt");
        ps.write(97);
        ps.write('\n');
        ps.println(97);
        ps.println(97);
        ps.close();
    }
}
